﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Kinematic
{
    public class SteeringOutput
    {
        public Vector3 linear;
        public float agular;

        public SteeringOutput(KinematicSteeringOutput Steeting)
        {
            this.linear = Steeting.Velocity;
            this.agular = Steeting.Rotation;
        }

        public SteeringOutput(Vector3 linear, float angular)
        {
            this.linear = linear;
            this.agular = angular;
        }

        public SteeringOutput()
        {
            this.linear = Vector3.Zero;
            this.agular = 0.0f;
        }

        public static SteeringOutput operator +(SteeringOutput a, SteeringOutput b)
        {
            return new SteeringOutput(a.linear + b.linear, a.agular + b.agular);
        }

        public static SteeringOutput operator *(SteeringOutput a, float b)
        {
            return new SteeringOutput(a.linear * b, a.agular * b);
        }

        public static SteeringOutput operator *(float b, SteeringOutput a)
        {
            return new SteeringOutput(a.linear * b, a.agular * b);
        }

    }
}
